#include <iostream>
using namespace std;
#include "mytime.h"

int main() {
  Time plan;
  Time coding(2, 40);
  Time fixing(5, 55);
  Time total;

  cout << "plan time:";
  plan.Show();
  cout << endl;

  cout << "coding time:";
  coding.Show();
  cout << endl;

  cout << "fixing time:";
  fixing.Show();
  cout << endl;

  // total = coding.Sum(fixing);
  // cout << "coding.Sum(fixing) :";
  total = coding + fixing;
  cout << "coding + fixing :";
  total.Show();
  cout << endl;

  Time morefixing(3, 28);
  cout << "morefixing time:";
  morefixing.Show();
  cout << endl;
  total = morefixing.operator+(total);
  cout << "morefixing.operator+(total):";
  total.Show();
  cout << endl;

  Time diff;
  Time adjust;
  diff = fixing - coding;
  cout << "fixing - coding :";
  diff.Show();
  cout << endl;

  adjust = total * 1.5;
  cout << "adjust work time:";
  adjust.Show();
  cout << endl;

  return 0;
}
